package com.google.code.gaeom;

/**
 * 
 * @author Peter Murray <gaeom@pmurray.com>
 *
 * @param <D> decoded type
 * @param <E> encoded type, must be compatible with GAE storage types.  
 * See: http://code.google.com/appengine/docs/java/datastore/entities.html#Properties_and_Value_Types
 */
public interface CustomEncoder<D,E>
{
	public E encode(D value);
	public D decode(E value);
}
